package com.situ.mall.admin.controller;

import com.situ.mall.admin.service.IAttachmentAdminService;
import com.situ.mall.common.service.IAttachmentService;
import com.situ.mall.common.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

@Controller
@RequestMapping("/attachment")
public class AttachmentAdminController {


    @Autowired
    private IAttachmentAdminService attachmentAdminService;


    @PostMapping("/uploadAdmin")
    @ResponseBody
    public ResultVO uploadAdmin(MultipartFile file) {
        return attachmentAdminService.uploadAdmin(file);
    }


}
